//入口文件
// console.log('ok')
import Vue from 'vue'

//导入路由的包
import VueRouter from 'vue-router'
Vue.use(VueRouter)

//导入时间插件
import moment from 'moment'
//定义全局过滤器
Vue.filter('dataFormat',function(dataStr, pattern='YYYY-MM-DD hh-mm-ss'){
	return moment(dataStr).format(pattern)
})


//导入vue-resource
import VueResource from 'vue-resource'
Vue.use(VueResource)

Vue.http.options.root = 'http://vue.studyit.io'



//导入mui代码段
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'




//按需导入Mint-UI中的组件
import {Header, Swipe, SwipeItem, Button} from 'mint-ui'
Vue.component(Header.name, Header)
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);



import router from './router.js'



import app from './App.vue'


var vm = new Vue({
	el: '#app',
	render: c => c(app),
	router
})